package com.itqf.service.impl;

import com.itqf.entity.SysUsers;
import com.itqf.mapper.SysUsersMapper;
import com.itqf.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/10/15
 * @Time: 上午9:29
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private SysUsersMapper sysUsersMapper;


    @Override
    public SysUsers findByUsername(String username) {
        return sysUsersMapper.findByUsername(username);
    }

    @Override
    public List<String> findRolesByUid(int uid) {
        return sysUsersMapper.findRolesByUid(uid);
    }

    @Override
    public List<String> findPermsByUid(int uid) {
        return sysUsersMapper.findPermsByUid(uid);
    }
}
